﻿using Common.CustAttributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZXIMEW.Models.DModels;

namespace ZXIMEW.Models.VModels
{
    [Table("ViewMenuInfos")]
    [PrimaryKey("MenuId")]
    public class ViewMenuInfo
    {
        public int Id { get; set; }
        /// <summary>
        /// 菜单编号 
        /// </summary>
        public int MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 父菜单编号 
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 父菜单名称
        /// </summary>
        public string PMenuName { get; set; }

        /// <summary>
        /// 页面名称
        /// </summary>
        public string FrmName { get; set; }

        /// <summary>
        /// 是否是顶级窗体 
        /// </summary>
        public bool IsTop { get; set; }
        /// <summary>
        /// 显示方式
        /// </summary>
        public string FormType
        {
            get
            {
                return IsTop ? "顶级" : "内嵌";
            }
        }
        /// <summary>
        /// 排序号
        /// </summary>
        public int MOrder { get; set; }
        /// <summary>
        /// 菜单代号
        /// </summary>
        public string MenuCode { get; set; }
    }
}
